package com.itheima.ydd.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import com.fasterxml.jackson.databind.PropertyNamingStrategy;
import com.fasterxml.jackson.databind.annotation.JsonNaming;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@JsonNaming(PropertyNamingStrategy.SnakeCaseStrategy.class)
@TableName("ydd_advimg")
public class YddAdvimg implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 广告图位置，关联广告位id
     */
    private String advimgpos;

    /**
     * 广告图地址
     */
    private String advimgsrc;

    /**
     * 广告图描述
     */
    private String advimgdesc;

    /**
     * 广告图链接
     */
    private String advimglink;

    /**
     * 是否为默认数据，null表示不是，1表示是
     */
    private String defaultData;

}
